package edu.xhu.api.video;

import edu.xhu.api.video.fallback.VideoCrudClientFallback;
import edu.xhu.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "bilivideo-service", contextId = "videoCrudClient", fallback = VideoCrudClientFallback.class)
public interface VideoCrudClient {
    /**
     * 获取全部视频id
     *
     * @return
     */
    @GetMapping("/bilivideo/getAllVideoIds")
    ResponseResult<?> getAllVideoIds();

    //根据videoIds,对所有video的弹幕数量+1
    @GetMapping("/bilivideo/updateDanmu")
    ResponseResult<?> updateDanmuByVideoIds(List<Long> videoIds);
}
